package com.huaxin.hxmoduleworkorder.common.annotation.validation;

import com.huaxin.hxmoduleworkorder.common.validator.InspectionOrderStatusValidator;
import com.huaxin.hxmoduleworkorder.common.validator.InspectionSendStatusValidator;
import jakarta.validation.Constraint;
import jakarta.validation.Payload;

import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = InspectionSendStatusValidator.class)
@Documented
public @interface ValidInspectionSendStatus {
    String message() default "无效的检查结果状态，允许值：pending,sent',failed";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
